package com.hqq.behaviour.delegation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * PrinterController
 * 代理类
 * Created by heqianqian on 2017/6/14.
 */
public class PrinterController implements Printer {

    private static Logger logger = LoggerFactory.getLogger(PrinterController.class);

    private Printer printer;

    public PrinterController(Printer printer) {
        this.printer = printer;
    }

    @Override
    public void print(String message) {
        printer.print(message);
    }
}
